package com.bingxue.edu.management.report.model.query;

import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.bingxue.edu.management.education.model.query.ClassQuery;
import com.mybatisflex.annotation.TableRef;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * @author panbo
 * @since 2024/12/30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableRef(ClassInfo.class)
public class LessonStatQuery extends ClassQuery {

    @Query(ignored = true)
    @NotNull(message = "请指定开始日期")
    private LocalDate dateFrom;

    @Query(ignored = true)
    @NotNull(message = "请指定结束日期")
    private LocalDate dateTo;
}
